package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.CANJaguar;
import edu.wpi.first.wpilibj.can.CANTimeoutException;
import edu.wpi.first.wpilibj.templates.HardwareMap;

public class Lifter extends Subsystem {
   
    CANJaguar Motor;
    
    //Same us Feeder
    private static final int POLARITY = 1;
    
    public Lifter(){
        super("Lifter");
        try {
            Motor = new CANJaguar(HardwareMap.LIFT_JAGUAR);
            Motor.setSafetyEnabled(false);

        }
        catch (CANTimeoutException e){
            e.printStackTrace();
        }
    }
    
    public void initDefaultCommand() {
    }
    
    public void Move(double Speed){
        //Same as Feeder
        try {
            Motor.setX(POLARITY*Speed);
        }
        catch (CANTimeoutException e){
            e.printStackTrace();
        }  
    }
}